package com.linwen.javase.desgin_pattern.BigTalkDesignPattenJAVACode._14备忘录模式._1基本代码;

//备忘录类
class Memento {

    private String state;

    public Memento (String state){
        this.state = state;
    }
    
    public String getState(){
        return this.state;
    }
    public void setState(String value){
        this.state = value;
    }
}